<!-- 轮播图单页内容组件 -->
<template>
    <div class="root">
        <div class="box" v-for='n in items'>
            <img :src='n.image_url|addPrefix'>
            <br/>
            <span>{{n.title}}</span>
        </div>
    </div>
</template>

<script>
export default {
    props:['items']
}
</script>

<style scoped>
.root {
    display: flex;
    flex-wrap: wrap;
}

.box{
    width: 25%;
    height:70px;
    /*border: solid 1px green;*/
    text-align: center;
}
img{
    width: 40px;
    height: 40px;
}
span{
    font-size: 12px;
    color: gray;
}
</style>
